<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--引入 jstl--%>
<%@include file="common/tag.jsp" %>
<html>
<head>
    <title>注册</title>
    <%@include file="common/head.jsp" %>
    <style>
        a {
            text-decoration: none
        }

        html, body {
            margin: 0;
            padding: 0;
            height: 100%;
        }

        #container {
            min-height: 100%;
            height: auto !important;
            height: 100%; /*IE6不识别min-height*/
            position: relative;
        }

        #page {
            width: 100%;
            margin-bottom: 50px; /*等于footer的高度*/
        }
    </style>

</head>
<body background="/./resource/images/bg.jpg" style="background-size: cover;background-repeat: no-repeat;">
<%--页面显示部分--%>
<div id="container" class="container">
    <jsp:include page="common/Top.jsp"/>
    <div id="page" class="panel panel-default">
        <div class="panel-heading">
            <h5><b>注册</b></h5>
        </div>
        <div class="row">
            <div class="col-lg-6 col-lg-offset-3" style="border:0px solid #000;margin-top: 10px;">
                <form:form action="/user/add" method="post" class="form-horizontal" style="margin-top: 40px;"
                           commandName="user">
                    <div class="form-group">
                        <from:label class="col-lg-2 control-label" path="userNumber">学号</from:label>
                        <div class="col-lg-8 control-label">
                            <form:input id="userNumber" class="form-control" type="text" name="personName"
                                        path="userNumber"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <form:label for="password" class="col-lg-2 control-label" path="userPassword">密码</form:label>
                        <div class="col-lg-8 control-label">
                            <form:input id="password" class="form-control" type="password" name="personName"
                                        path=""/>
                        </div>
                    </div>
                    <div class="form-group">
                        <form:label for="rePassword" class="col-lg-2 control-label"
                                    path="userPassword">重复密码</form:label>
                        <div class="col-lg-8 control-label">
                            <form:input path="userPassword" id="rePassword" class="form-control" type="password"
                                        name="personName"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <form:label for="personName" class="col-lg-2 control-label" path="userName">姓名</form:label>
                        <div class="col-lg-8 control-label">
                            <form:input path="userName" id="personName" class="form-control" type="text"
                                        value="${user.userName}" name="personName"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <form:label for="userSex" class="col-lg-2 control-label" path="userSex">性别</form:label>
                        <div class="control-label" style="float: left">
                            <form:radiobuttons path="userSex" id="userSex" class="radio-inline" items="${sexList}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <form:label for="personSystem" class="col-lg-2 control-label" path="userRemark">学院</form:label>
                        <div class="col-lg-8">
                            <form:select class="form-control" path="userRemark">
                                <form:option value="none" label="请选择..."></form:option>
                                <form:options items="${facultyList}"></form:options>
                            </form:select>
                        </div>
                    </div>
                    <div class="form-group">
                        <form:label for="userProfession" class="col-lg-2 control-label"
                                    path="userProfession">专业</form:label>
                        <div class="col-lg-8">
                            <form:input path="userProfession" id="userProfession" class="form-control" type="text"
                                        value="${user.userProfession}" name="personNumber"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <form:label for="userClass" class="col-lg-2 control-label" path="userClass">班级</form:label>
                        <div class="col-lg-8">
                            <form:input path="userClass" id="userClass" class="form-control" type="text"
                                        value="${user.userClass}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <form:label for="personPhone" class="col-lg-2 control-label" path="userPhone">电话号码</form:label>
                        <div class="col-lg-8">
                            <form:input path="userPhone" id="personPhone" class="form-control" type="text"
                                        value="${user.userPhone}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <form:label for="userEmail" class="col-lg-2 control-label" path="userEmail">邮箱</form:label>
                        <div class="col-lg-8">
                            <form:input path="userEmail" id="userEmail" class="form-control" type="text"
                                        value="${user.userEmail}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="row">
                            <div class="col-lg-1 col-lg-offset-2">
                                <input id="publish" onclick="clicke()" class="btn" type="submit"
                                       style="margin-left: 10px"
                                       value="注册"/>
                            </div>
                            <div class="col-lg-1 col-lg-offset-1">
                                <input class="btn" type="reset" value="重新填写"/>
                            </div>
                        </div>
                    </div>

                </form:form>
            </div>
        </div>
        <jsp:include page="common/footer.jsp"/>
    </div>
</div>
</body>
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</html>